import java.awt.*;
import javax.swing.*;

public class BasicPanel extends JPanel
{
	public static void main(String arg[])
	{
		int graphHeight = 200;
		int graphWidth = 1200;

		JFrame frame = new JFrame("BasicPanel");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setSize(graphWidth, graphHeight);

		BasicPanel panel = new BasicPanel();
		frame.setContentPane(panel);
		frame.setVisible(true);

	}

	public BasicPanel()
	{
		super();
	}

	public void paintComponent(Graphics g)
	{
		
		
		
		int graphHeight = this.getHeight();


		int xA, xB, yA, yB;
		int j = 0; //number of factors in a root
		
		for (int i = 2; i < 100; i++)
		{

			j = Driver.factorGetter(i);	
		
			xA = (i * 10);
			xB = ((i + 1) * 10);

//			yA = graphHeight - primeNumbers[i][0] * 10;
//			yB = graphHeight - primeNumbers[i + 1][0] * 10;
			
			yA = graphHeight - (Driver.factorGetter(i) * 10);
			yB = graphHeight - (Driver.factorGetter(i + 1) * 10);

			g.drawLine(xA, yA, xB, yB);

		}

	}

}